Module:Infobox/Composé chimique

Une page de Wikipédia, l'encyclopédie libre.

 Documentation[voir] [modifier] [historique] [purger]

Cette page définit un module d'infobox. Pour les conseils sur l'usage de ce module, voyez Modèle:Infobox Composé chimique.


local wd = require "Module:Wikidata"
local general = require "Module:Infobox/Fonctions"

--local styleH = {['background'] = '#EEEEEE', ['text-indent'] = '3px', ['text-align'] = 'left', ['font-weight'] = 'normal', ['width'] = --'45%', ['padding'] = '2px 7px'}
--local styleH1 = {['background'] = '#EEEEEE',  ['text-align'] = 'center', ['font-weight'] = 'normal'}

return {
    maincolor = '#FFDEAD',
    parts = {
        {  type = 'title', value = 'nom' },
        -- general.mainimage('image'),
        -- { type = 'images', imageparameters = 'image', captionparameter = 'légende'},
        { type = 'table', title = 'Identification', 
	   rows = {
		{ type = 'row', label = 'SMILES', value = 'SMILES', wikidata = '' , property = 'P233' }, 
		{ type = 'row', label = 'StdInChIKey ', value = 'StdInChIKey ', property = 'P235' },
		{ type = 'row', label = 'StdInChI', value = 'StdInChI', property = 'P234' },

		{ type = 'row', label = '[[Dénomination commune internationale|DCI]]', value = 'DCI' },
		{ type = 'row', label = '[[Nomenclature IUPAC|Nom IUPAC]]', value = 'nomIUPAC' },
		{ type = 'row', label = '[[Numéro CAS|N° CAS]]', value = 'CAS', property = 'p231' },
		{ type = 'row', label = '[[Numéro EINECS|N° EINECS]]', value = 'EINECS', property = 'p232' },
		{ type = 'row', label = '[[Numéro RTECS|N° RTECS]]', value = 'RTECS', property = 'p657' },
		{ type = 'row', label = '[[Classification anatomique, thérapeutique et chimique|Code ATC]]', value = 'ATC', property = 'p267' },
		{ type = 'row', label = 'DrugBank', value = 'DrugBank', property = 'p715' },
		{ type = 'row', label = '[[PubChem]]', value = 'PubChem', class = 'external text', property = 'p662', weblink = 'http://pubchem.ncbi.nlm.nih.gov/summary/summary.cgi?cid=' },
		{ type = 'row', label = 'ChEBI', value = 'chEBI', property = 'p683', weblink = 'http://www.ebi.ac.uk/chebi/searchId.do?chebiId=' },
		{ type = 'row', label = '[[Additif alimentaire|N° E]]', value = 'NrE', property = 'p628' },
		{ type = 'row', label = '[[Generally recognized as safe|FEMA]]', value = 'FEMA' },
		{ type = 'row', label = '[[Simplified Molecular Input Line Entry Specification|SMILES]]', value = 'SMILES', property = 'p233' },
		{ type = 'row', label = 'InChI', value = 'StdInChI', property = 'p234' },
	        { type = 'row', label = 'InChIKey', value = 'StdInChIKey', property = 'p235' },
		{ type = 'row', label = 'Apparence', value = 'apparence' }
	   },
        },
    },
}